import axios from 'axios';
//
const service = axios.create({
    baseURL:"http://wfa.inzj.cn/wf/detail",
    timeout:9999
})
// http request 拦截器
service.interceptors.request.use(
    config => {
        // 定义请求头
        config.headers = {
            'Content-Type':'application/json; charset=utf-8',
            'Access-Control-Allow-Origin':'*'
        }
        return config;
    },
    error => {
        console.log(error)
    }
)
// http response 拦截器
service.interceptors.response.use(
    response => {
        return response.data;
    },
    error => {
        console.log(error)
    }
)
//http GET请求
export function WGET(url, params = null){
    return service.get(url, {params});
}